import random


def del_odd(n):
    return n % 2 == 0


print(list(filter(del_odd, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9])))

li = random.sample(range(100), 10)
print(list(i for i in li if i % 2 == 0))

print(list(filter(lambda x: x % 2 == 0, li)))
